package DiErZhou.Day1;

public class Day1_6 {
    public static void main(String[] args) {
        int j=0;
        for (int num = 2; num < 999; num++) {
            boolean flag=true;
            for (int i = 2; i < num; i++) {
                if (num % i == 0) {
                    flag = false;
                    break;
                }
            }
                if (flag){
                    j++;
                    System.out.print(num+"\t\t");
                    if (j%12==0){
                        System.out.println();
                    }
                }

        }

    }
}
